#!/bin/sh
cd `dirname $0`

srv_list=(
conn_srv
game_srv
)

for srv_name in ${srv_list[*]}
do
    if [ -f "${srv_name}/pid.txt" ]; then
	pid=`cat "${srv_name}/pid.txt"`
	kill -10 $pid
    else
	echo -en "${srv_name}:  \e33m0\e[0m" | awk '{printf "%-20s %-5s\n", $1, $2}' 
    fi
done
